package com.antilia.infomaresme.pages;

import org.apache.wicket.ajax.IAjaxIndicatorAware;
import org.apache.wicket.markup.html.IHeaderResponse;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.request.mapper.parameter.PageParameters;

import com.antilia.infomaresme.resources.Style;
/**
 * @author Ernesto
 *
 */
public class CategoriesPage extends WebPage implements IAjaxIndicatorAware {
	
	private static final long serialVersionUID = 1L;

	public CategoriesPage(final PageParameters pp)
	{
		ChooseCategoryPanel categories = new ChooseCategoryPanel("categories");
		add(categories);
	}
	
	@Override
	public void renderHead(IHeaderResponse response) {
		response.renderCSSReference(Style.CSS);
	}
	
	public String getAjaxIndicatorMarkupId() {
		return "veil";
	}
}
